home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / dmedia / sfinfo.z / sfinfo
Text File  |  1998-10-30  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4. ssssffffiiiinnnnffffoooo((((1111))))                                                            ssssffffiiiinnnnffffoooo((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sfinfo - display soundfile information
  10.  
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      sfinfo [ options ... ] soundfiles ...
  14.  
  15.      where options are:
  16.  
  17.         -short
  18.         -reporterror
  19.  
  20.      The full option string need not be specified; -s and -r will work.
  21.  
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      sfinfo reports information about the soundfile(s) specified.  If invoked
  25.      with no arguments, it will display help.  If invoked like:
  26.  
  27.         sfinfo flute.aif
  28.  
  29.      It will give you info in the format:
  30.  
  31.  
  32.         Filename: flute.aif
  33.         File Format: Audio Interchange File Format (aiff)
  34.         Size: 32100 sample frames, 0.73 seconds, 64.6 Kbytes.
  35.         Format: 1 channel 16-bit integer (2's complement, big endian) file.
  36.         Sampling Rate: 44.100 kHz.
  37.         Data begins at offset 402 (192 hex).
  38.  
  39.  
  40.      If you specify the -short (-s) option, sfinfo reports information in this
  41.      ls-like format:
  42.  
  43.          tttt  sssss.ss ffff  ccc bbb ee filename
  44.          0.73s 44100.00 aiff  1ch 16b -- flute.aif
  45.         37.27s 22050.00 next  2ch float  phone.snd
  46.  
  47.      Where:
  48.         t is length of soundfile in seconds
  49.         s is sampling rate of soundfile in Hertz
  50.         f is soundfile format
  51.         c is number of channels in file
  52.         b is # of bits for integer or mulaw file, or "float" for
  53.           floating point file
  54.         e is sample encoding, "--" for linear or "mu" for mulaw
  55.           (this does not apply to floating point files)
  56.  
  57.      A good way of doing a "soundfile ls" is:
  58.  
  59.         sfinfo -s *
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ssssffffiiiinnnnffffoooo((((1111))))                                                            ssssffffiiiinnnnffffoooo((((1111))))
  71.  
  72.  
  73.  
  74.      which looks like:
  75.  
  76.          0.73s 44100.00 aiff  1ch 16b -- flute.aif
  77.          6.47s  8000.00 aifc  1ch 16b -- gunn.afc
  78.          6.47s  8000.00 next  1ch  8b mu gunn.snd
  79.         37.27s 22050.00 next  2ch float  phone.snd
  80.          1.53s 22050.00 next  1ch 16b -- vulc.snd
  81.          1.53s 22050.00 wave  1ch 16b -- vulc.wav
  82.  
  83.      This works because sfinfo ignores files which are not soundfiles.
  84.      Therefore the above listing only includes files in the supported formats,
  85.      even if the directory included other files.
  86.  
  87.      The -reporterror option causes sfinfo to report an error if one of the
  88.      files given is not a valid soundfile.  This may be desirable if a given
  89.      set of files must contain all soundfiles.
  90.  
  91.  
  92. AAAAUUUUTTTTHHHHOOOORRRR
  93.      Silicon Graphics Inc.; Apple Computer, Inc. for AIFF code.
  94.  
  95.  
  96.  
  97. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  98.      afIntro(3a) for more about the Audio File library.
  99.      sfplay(1), sfconvert(1), sfkeywords(1),
  100.      dmconvert(1), dminfo(1), mediaconvert(1)
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.